package com.sig.sigandroidDisconnected;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;

public class GpsLocation implements LocationListener {

	/**
     * Latitude in degrees.
     */
    private double latitude;

    /**
     * Longitude in degrees.
     */
    private double longitude;

    /**
     * Get the latitude.
     * 
     * @return The latitude.
     */
    public double getLatitude() {
            return latitude;
    }

    /**
     * Get the longitude.
     * 
     * @return The longitude.
     */
    public double getLongitude() {
            return longitude;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void onLocationChanged(Location location) {
            latitude = location.getLatitude();
            longitude = location.getLongitude();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void onProviderDisabled(String provider) {
            // TODO GPS disabled.
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void onProviderEnabled(String provider) {
            // TODO GPS enabled.
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void onStatusChanged(String provider, int status, Bundle extras) {
    }

}
